home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1476 / text0000.txt < prev   
Encoding:
Text File  |  1996-08-05  |  1.2 KB  |  38 lines

  1. On Wed, 17 Jan 1996 xvojm10@vse.cz wrote:
  2.  
  3. > if (lock = Lock(file, ACCESS_READ))
  4. >    {
  5. >    if (dt = ObtainDataType( DTST_FILE, lock, TAG_DONE))
  6. >       {
  7. >       if (dto = NewDTObject( file, DTA_DataType, dt, ..., TAG_DONE))
  8. >      {
  9.  
  10. If you have a file, you don't need to call ObtainDataType(). Just pass 
  11. the file to NewDTObject() without DTA_DataType. You can also specify a
  12. group of files, which should only match using DTA_GroupID (or so), perhaps
  13. GID_PICTURE. (I have no includes here, so the define names may be incorrect)
  14.  
  15.  
  16. > /*When here is some function ( I had AddDTObject here) that doesn't work 
  17. > with bm the bm was changed to random address from some strange reason. */
  18. >      GetDTAttrs( dto, PDTA_BitMap, &bm, PDTA_scrmode, &scrmode, 
  19. >                             TAG_DONE);
  20. You have to check the result from GetDTAttrs() and it must be the number 
  21. of tags you requested. Otherwise some variables aren't set to a correct 
  22. value.
  23.  
  24. Ciao
  25.     Stefan
  26.  
  27. Home : Stefan Ruppert           EMail: ruppert@goofy.zdv.uni-mainz.de
  28.        Windthorststrasse 5             ruppert@informatik.fh-wiesbaden.de
  29.        65439 Floersheim am Main WWW:   http://www.uni-mainz.de/~ruppert/
  30.        GERMANY
  31.  
  32.